package com.example.everying.model.entity.statistics;/*
 * 项目名称: everything
 * 文件名: UserBehaviorLog
 * 作者: 张泽阳
 * 日期: 2025/7/16
 * 描述:
 */

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("user_behavior_log")
public class UserBehaviorLog {
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("用户id")
    private String userId;

    @ApiModelProperty("会话id")
    private Long sessionId;

    @ApiModelProperty("文章id")
    private String articleId;

    @ApiModelProperty("帖子停留时长")
    private Integer stayDuration;

    @ApiModelProperty("行为编码")
    private String actionCode;

    @ApiModelProperty("行为名称")
    private String actionName;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;
}
